export const sleep = (delay: number) => {
    return new Promise((resolve) => {
        setTimeout(() => {
            resolve(true);
        }, delay);
    });
};
export const YYYYMMDD = (date?: number | string) => {
    let nowDate = new Date();
    if (date) nowDate = new Date(date);
    return nowDate.toLocaleDateString();
};
